<?php
/*
 * Glorious Framework
 *
 * Language helper functions
 *
 * (c) 2007-2010 Konspire Design
 *
 * $Id: language_helper.php,v 204646426a58 2010/04/29 12:06:51 and $
 * $Author: and $
 * $Date: 2010/04/29 12:06:51 $
 */

function get_locale() {
    return Language::instance()->get_locale();
}

function __($text, $domain = 'default') {
    return Language::instance()->translate($text, $domain);
}

function _e($text, $domain = 'default') {
    echo Language::instance()->translate($text, $domain);
}

function _n($single, $plural, $number, $domain = 'default') {
    return Language::instance()->translate_plural($single, $plural, $number, $domain);
}

function _x( $single, $context, $domain = 'default' ) {
    return Language::instance()->translate_with_gettext_context( $single, $context, $domain );
}

function _nx($single, $plural, $number, $context, $domain = 'default') {
    return Language::instance()->translate_plural_with_context($single, $plural, $number, $context, $domain);
}

/* End of file language_helper.php */
/* Location: ./system/helpers/language_helper.php */